#ifndef  __LOG_FILE_H_
#define  __LOG_FILE_H_

//#include "StdAfx.h"
#include <QMutex>
#include <QFile>


class  KgLogFile
{
public:
    KgLogFile();
	~KgLogFile();
public:
	void createlogfile(QString fileName);
	void writelogfile(QString strInfo);
	int fileSize();
	void close();

private:
    QFile    m_file;           
	QString  m_strPath;        
	int      m_bCreateSuc;    
	QMutex   m_criticfile;
};

#endif

